package com.centaline.androidsalesblog.model.businissobject;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 分享实体
 * Created by guilin on 16/5/9.
 */
public class ShareBo implements Parcelable {

    private int comeFrom;//来源0:二手房;1:租房;2:小区;3:新房
    private String houseName;//房源名称
    private String houseDecription;//房源描述
    private String regionGscop;//区域板块
    private String houseType;//户型
    private String area;//面积
    private String totalPrice;//总价
    private String avgPrice;//均价
    private String imageUrl;
    private String houseUrl;//房源url
    private String apkUrl;//app地址

    public ShareBo(int comeFrom) {
        this.comeFrom = comeFrom;
        apkUrl = "您可以下载【中原找房】app查看，下载地址：http://wap.centanet.com/applink/";
    }

    public int getComeFrom() {
        return comeFrom;
    }

    public void setComeFrom(int comeFrom) {
        this.comeFrom = comeFrom;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }

    public String getHouseDecription() {
        return houseDecription;
    }

    public void setHouseDecription(String houseDecription) {
        this.houseDecription = houseDecription;
    }

    public String getRegionGscop() {
        return regionGscop;
    }

    public void setRegionGscop(String regionGscop) {
        this.regionGscop = regionGscop;
    }

    public String getHouseType() {
        return houseType;
    }

    public void setHouseType(String houseType) {
        this.houseType = houseType;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getAvgPrice() {
        return avgPrice;
    }

    public void setAvgPrice(String avgPrice) {
        this.avgPrice = avgPrice;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getHouseUrl() {
        return houseUrl;
    }

    public void setHouseUrl(String houseUrl) {
        this.houseUrl = houseUrl;
    }

    public String getApkUrl() {
        return apkUrl;
    }

    public void setApkUrl(String apkUrl) {
        this.apkUrl = apkUrl;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.comeFrom);
        dest.writeString(this.houseName);
        dest.writeString(this.houseDecription);
        dest.writeString(this.regionGscop);
        dest.writeString(this.houseType);
        dest.writeString(this.area);
        dest.writeString(this.totalPrice);
        dest.writeString(this.avgPrice);
        dest.writeString(this.imageUrl);
        dest.writeString(this.houseUrl);
        dest.writeString(this.apkUrl);
    }

    protected ShareBo(Parcel in) {
        this.comeFrom = in.readInt();
        this.houseName = in.readString();
        this.houseDecription = in.readString();
        this.regionGscop = in.readString();
        this.houseType = in.readString();
        this.area = in.readString();
        this.totalPrice = in.readString();
        this.avgPrice = in.readString();
        this.imageUrl = in.readString();
        this.houseUrl = in.readString();
        this.apkUrl = in.readString();
    }

    public static final Parcelable.Creator<ShareBo> CREATOR = new Parcelable.Creator<ShareBo>() {
        @Override
        public ShareBo createFromParcel(Parcel source) {
            return new ShareBo(source);
        }

        @Override
        public ShareBo[] newArray(int size) {
            return new ShareBo[size];
        }
    };
}
